from django.db import models
from django.contrib.auth.models import User
from django.contrib.localflavor.us.models import PhoneNumberField


class Customer(models.Model):
    user = models.ForeignKey(User)
    phone_number = PhoneNumberField(blank=True)
    line_1 = models.CharField(max_length = 300)
    line_2 = models.CharField(max_length = 300)
    line_3 = models.CharField(max_length = 300)
    city = models.CharField(max_length = 150)
    postalcode = models.CharField(max_length = 6)
    state = models.CharField(max_length = 150)
    country = models.CharField(max_length = 150)